package com.scraper;

import org.jsoup.nodes.Document;

/**
 * This abstract class is responsible for retrieving pertinent data from web pages. 
 * 
 * @author Micah Perry
 *
 */
public abstract class WebScraper {
	/**
	 * Represents the type of Scraper for the WebScraper instance. 
	 */
	public ScraperType scraperType; 
	
	/**
	 * Sets the ScraperType for this instance of WebScraper. 
	 * @param inputScraperType
	 */
	public void setScraperType(ScraperType inputScraperType){
		scraperType = inputScraperType;
	}
	
	/**
	 * This abstract method is intended to be used to scrape a webpage.
	 * @param targetDocument The input Document to be scraped. 
	 */
	abstract void scrapeWebPage(Document targetDocument);
}
